package com.erp.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
 @Select("select pid from sys_role_permission where rid =#{rid}")
    public List<Integer> getPidsByRid(Integer rid);
}
